package com.xiaodu.validator;

import org.springframework.beans.BeansException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * @author: dutianjie
 * @date: 2021/3/31
 * @version: v1.0.0
 * @description: 描述
 **/
@SpringBootApplication
public class ValidatorApplication implements ApplicationContextAware {

    public static ApplicationContext applicationContext;

    public static void main(String[] args) {
        SpringApplication.run(ValidatorApplication.class, args);
    }

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        ValidatorApplication.applicationContext = applicationContext;
    }
}
